import request from '@/utils/request'

// 查询前端环境自定义配置项列表
export function listFrontendEnvCustomConfigItem(query) {
  return request({
    url: '/tool/frontend/frontendEnvCustomConfigItem/list',
    method: 'get',
    params: query
  })
}

// 查询前端环境自定义配置项详细
export function getFrontendEnvCustomConfigItem(customConfigItemId) {
  return request({
    url: '/tool/frontend/frontendEnvCustomConfigItem/' + customConfigItemId,
    method: 'get'
  })
}

// 新增前端环境自定义配置项
export function addFrontendEnvCustomConfigItem(data) {
  return request({
    url: '/tool/frontend/frontendEnvCustomConfigItem',
    method: 'post',
    data: data
  })
}

// 修改前端环境自定义配置项
export function updateFrontendEnvCustomConfigItem(data) {
  return request({
    url: '/tool/frontend/frontendEnvCustomConfigItem',
    method: 'put',
    data: data
  })
}

// 删除前端环境自定义配置项
export function delFrontendEnvCustomConfigItem(customConfigItemId) {
  return request({
    url: '/tool/frontend/frontendEnvCustomConfigItem/' + customConfigItemId,
    method: 'delete'
  })
}
